package com.zhaogang.service;

import java.util.Date;
import java.util.List;

import com.zhaogang.dto.AdminOrderDto;
import com.zhaogang.dto.GoodsInfoResponse;
import com.zhaogang.dto.OrderInfoResponse;
import com.zhaogang.dto.ReceiptInfoRequest;
import com.zhaogang.dto.SaleOrderManageDTO;
import com.zhaogang.entity.Order;
import com.zhaogang.entity.Page;

public interface OrderService {

	boolean AddOrder(Order record);//添加订单   熊玉浩写
	
	List<SaleOrderManageDTO> querySaleOrderList(Integer saleAccountId,Page p);//分页查询商户所有订单列表
	
	List<SaleOrderManageDTO> querySaleOrderByCon1(SaleOrderManageDTO saleOrderDto,Page p);//分页条件查询商户订单
	
	OrderInfoResponse selectOrder(Integer id);//查询订单信息   何奔写
	
	void payOrder(Integer orderId,Date commitDate);
	
	int updateReceiptInfo(ReceiptInfoRequest rir);//修改收货信息
	
	List<Order> selectAllNoEndOrder();//查询所有未完成订单
	
	boolean delOrder(Integer orderId);//删除订单
	
	boolean delOrderTimer(int orderId,int num,int saleGoodsId);
	
	GoodsInfoResponse selectSaleGoodsInfo(int saleGoodsId);
	
	Page findSaleOrderPage1(SaleOrderManageDTO saleOrderDto,Page page);  //商户订单分页
	
	/**
	 * 管理员查询所有商户
	 */
	/**
     * 分页
     */
    Page findPage(Page page);
	List<AdminOrderDto> adminQueryOrder(Page p);
	
	/**
	 * 条件查询
	 */
	Page findPage1(Page page,Integer id,String realname,String state);
	List<AdminOrderDto> orderQueryByCon(Integer id,String realname,String state,Page p);
	
	int updateValid(int orderId);
}
